package com.bishe.demo.modules.hotel.hotelMain.entity;

import com.bishe.demo.modules.account.entity.User;
import com.bishe.demo.modules.hotel.hotel.entity.HotelOrder;
import com.bishe.demo.modules.hotel.hotelDetail.entity.Detail;
import com.bishe.demo.modules.hotel.hotelFacilityAndService.entity.FacilityAndService;
import com.bishe.demo.modules.hotel.hotelPolicy.entity.Policy;
import com.bishe.demo.modules.hotel.hotelRoom.entity.Room;

import javax.persistence.*;
import java.util.List;

@Entity
@Table(name = "hotel_main")
public class HotelMain {
    @Id//表示该字段是主键
    @Column(nullable = false, updatable = false)//nullable = false:表示该字段不能为空，updatable = false：表示该字段不能修改
    private int hotelMainId;

    @Transient
    private User user;

    private String hotelName;

    private int province;

    private int city;

    private int area;

    private double longitude;

    private double latitude;

    private String location;

    private int hotelStar;

    @Transient
    private Detail hotelDetail;

    @Transient
    private List<Room> hotelRooms;

    @Transient
    private FacilityAndService facilityAndService;

    @Transient
    private Policy policy;

    @Transient
    private List<HotelOrder> hotelOrders;

    public int getHotelMainId() {
        return hotelMainId;
    }

    public void setHotelMainId(int hotelMainId) {
        this.hotelMainId = hotelMainId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getHotelName() {
        return hotelName;
    }

    public void setHotelName(String hotelName) {
        this.hotelName = hotelName;
    }

    public int getProvince() {
        return province;
    }

    public void setProvince(int province) {
        this.province = province;
    }

    public int getCity() {
        return city;
    }

    public void setCity(int city) {
        this.city = city;
    }

    public int getArea() {
        return area;
    }

    public void setArea(int area) {
        this.area = area;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public int getHotelStar() {
        return hotelStar;
    }

    public void setHotelStar(int hotelStar) {
        this.hotelStar = hotelStar;
    }

    public Detail getHotelDetail() {
        return hotelDetail;
    }

    public void setHotelDetail(Detail hotelDetail) {
        this.hotelDetail = hotelDetail;
    }

    public List<Room> getHotelRooms() {
        return hotelRooms;
    }

    public void setHotelRooms(List<Room> hotelRooms) {
        this.hotelRooms = hotelRooms;
    }

    public FacilityAndService getFacilityAndService() {
        return facilityAndService;
    }

    public void setFacilityAndService(FacilityAndService facilityAndService) {
        this.facilityAndService = facilityAndService;
    }

    public Policy getPolicy() {
        return policy;
    }

    public void setPolicy(Policy policy) {
        this.policy = policy;
    }

    public List<HotelOrder> getHotelOrders() {
        return hotelOrders;
    }

    public void setHotelOrders(List<HotelOrder> hotelOrders) {
        this.hotelOrders = hotelOrders;
    }
}
